/*
package com.leetcode.trainingDay.training11;

import com.leetcode.demo3Solution.JianOffer.Girl;

public class training1102 {
    public static void main(String[] args) {
        int[][]  arr={
                {1,2,5},
                {3,2,6}
        };
        Girl girl=new Girl();
        girl.setName("hello"+"是图图呀"+"18的姑娘");
        girl.setAge(18);
        System.out.println("shitutuya:"+arr.length);
       //System.out.println("shitutuya:"+maxValue(arr));
        }
    public static int maxValue(int[][] grid) {
        int xLength=grid[0].length;
        int yLength=grid.length;
        int sum=0;

        //初始化第一行
        for(int x=1;x<xLength;x++){
            grid[0][x] =  grid[0][x-1]+grid[0][x];
        }
        //初始化第一列
        for(int y=1;y<yLength;y++){
            grid[y][0] =grid[y-1][0] + grid[y][0];
        }

        for(int i=1;i<xLength;i++){
            for(int j=1;j<yLength;j++){
                grid[j][i]=Math.max(grid[j][i-1] ,grid[j-1][i])+grid[j][i];
            }
        }

        return grid[yLength-1][xLength-1];
    }
}
*/
